package Configs

type Config struct {
	Upstreams []Upstream             `json:"upstreams"`
	AuthItems map[string]OAuthConfig `json:"auth_items"`
}

type Upstream struct {
	Upstream        string `json:"upstream"`
	UpHost          string `json:"up_host"`
	Application     string `json:"path"`
	TrimApplication bool   `json:"trim_path"`
	IsAuth          bool   `json:"is_auth"`
}

type OAuthConfig struct {
	OAuthType string            `json:"oauth_type"` // remote, config
	Configs   map[string]string `json:"configs"`
}
